package com.gztms.blogmgnt.controller;

import com.gztms.blogmgnt.pojo.BlogReview;
import com.gztms.blogmgnt.service.BlogReviewService;
import com.gztms.utils.ResultUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * @author Zoey
 * @date 2023/5/9 13:23
 * @Description TODO
 **/
@RestController
@RequestMapping("/blogReview")
public class BlogReviewController {

    @Autowired
    private BlogReviewService blogReviewService;

    @PostMapping("/addReview")
    public ResultUtil addBlogReview(@RequestBody BlogReview blogReview) {
        return blogReviewService.addBlogReview(blogReview);
    }

}
